Optimal. Leaf size=94 \[ -\frac{a^3 \cos (c+d x)}{d \sqrt{a \sin (c+d x)+a}}-\frac{a^2 \cot (c+d x) \sqrt{a \sin (c+d x)+a}}{d}-\frac{5 a^{5/2} \tanh ^{-1}\left (\frac{\sqrt{a} \cos (c+d x)}{\sqrt{a \sin (c+d x)+a}}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.193435, antiderivative size = 94, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.174, Rules used = {2762, 2981, 2773, 206} \[ -\frac{a^3 \cos (c+d x)}{d \sqrt{a \sin (c+d x)+a}}-\frac{a^2 \cot (c+d x) \sqrt{a \sin (c+d x)+a}}{d}-\frac{5 a^{5/2} \tanh ^{-1}\left (\frac{\sqrt{a} \cos (c+d x)}{\sqrt{a \sin (c+d x)+a}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2762
Rule 2981
Rule 2773
Rule 206
Rubi steps
\begin{align*} \int \csc ^2(c+d x) (a+a \sin (c+d x))^{5/2} \, dx &=-\frac{a^2 \cot (c+d x) \sqrt{a+a \sin (c+d x)}}{d}-a \int \csc (c+d x) \left (-\frac{5 a}{2}-\frac{1}{2} a \sin (c+d x)\right ) \sqrt{a+a \sin (c+d x)} \, dx\\ &=-\frac{a^3 \cos (c+d x)}{d \sqrt{a+a \sin (c+d x)}}-\frac{a^2 \cot (c+d x) \sqrt{a+a \sin (c+d x)}}{d}+\frac{1}{2} \left (5 a^2\right ) \int \csc (c+d x) \sqrt{a+a \sin (c+d x)} \, dx\\ &=-\frac{a^3 \cos (c+d x)}{d \sqrt{a+a \sin (c+d x)}}-\frac{a^2 \cot (c+d x) \sqrt{a+a \sin (c+d x)}}{d}-\frac{\left (5 a^3\right ) \operatorname{Subst}\left (\int \frac{1}{a-x^2} \, dx,x,\frac{a \cos (c+d x)}{\sqrt{a+a \sin (c+d x)}}\right )}{d}\\ &=-\frac{5 a^{5/2} \tanh ^{-1}\left (\frac{\sqrt{a} \cos (c+d x)}{\sqrt{a+a \sin (c+d x)}}\right )}{d}-\frac{a^3 \cos (c+d x)}{d \sqrt{a+a \sin (c+d x)}}-\frac{a^2 \cot (c+d x) \sqrt{a+a \sin (c+d x)}}{d}\\ \end{align*}
Mathematica [A] time = 0.801497, size = 182, normalized size = 1.94 \[ -\frac{a^2 \csc ^4\left (\frac{1}{2} (c+d x)\right ) \sqrt{a (\sin (c+d x)+1)} \left (2 \sin \left (\frac{3}{2} (c+d x)\right )+2 \cos \left (\frac{3}{2} (c+d x)\right )+5 \sin (c+d x) \left (\log \left (-\sin \left (\frac{1}{2} (c+d x)\right )+\cos \left (\frac{1}{2} (c+d x)\right )+1\right )-\log \left (\sin \left (\frac{1}{2} (c+d x)\right )-\cos \left (\frac{1}{2} (c+d x)\right )+1\right )\right )\right )}{d \left (\cot \left (\frac{1}{2} (c+d x)\right )+1\right ) \left (\csc \left (\frac{1}{4} (c+d x)\right )-\sec \left (\frac{1}{4} (c+d x)\right )\right ) \left (\csc \left (\frac{1}{4} (c+d x)\right )+\sec \left (\frac{1}{4} (c+d x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.703, size = 123, normalized size = 1.3 \begin{align*} -{\frac{1+\sin \left ( dx+c \right ) }{\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) d}\sqrt{-a \left ( \sin \left ( dx+c \right ) -1 \right ) }{a}^{{\frac{3}{2}}} \left ( \sin \left ( dx+c \right ) \left ( 2\,\sqrt{a-a\sin \left ( dx+c \right ) }\sqrt{a}+5\,{\it Artanh} \left ({\frac{\sqrt{a-a\sin \left ( dx+c \right ) }}{\sqrt{a}}} \right ) a \right ) +\sqrt{a-a\sin \left ( dx+c \right ) }\sqrt{a} \right ){\frac{1}{\sqrt{a+a\sin \left ( dx+c \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (d x + c\right ) + a\right )}^{\frac{5}{2}} \csc \left (d x + c\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.4929, size = 790, normalized size = 8.4 \begin{align*} \frac{5 \,{\left (a^{2} \cos \left (d x + c\right )^{2} - a^{2} -{\left (a^{2} \cos \left (d x + c\right ) + a^{2}\right )} \sin \left (d x + c\right )\right )} \sqrt{a} \log \left (\frac{a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - 4 \,{\left (\cos \left (d x + c\right )^{2} +{\left (\cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right ) - 3\right )} \sqrt{a \sin \left (d x + c\right ) + a} \sqrt{a} - 9 \, a \cos \left (d x + c\right ) +{\left (a \cos \left (d x + c\right )^{2} + 8 \, a \cos \left (d x + c\right ) - a\right )} \sin \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} +{\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 1}\right ) + 4 \,{\left (2 \, a^{2} \cos \left (d x + c\right )^{2} + a^{2} \cos \left (d x + c\right ) - a^{2} +{\left (2 \, a^{2} \cos \left (d x + c\right ) + a^{2}\right )} \sin \left (d x + c\right )\right )} \sqrt{a \sin \left (d x + c\right ) + a}}{4 \,{\left (d \cos \left (d x + c\right )^{2} -{\left (d \cos \left (d x + c\right ) + d\right )} \sin \left (d x + c\right ) - d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 2.77994, size = 567, normalized size = 6.03 \begin{align*} \frac{\frac{10 \, a^{3} \arctan \left (-\frac{\sqrt{a} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - \sqrt{a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a}}{\sqrt{-a}}\right ) \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1\right )}{\sqrt{-a}} - 5 \, a^{\frac{5}{2}} \log \left ({\left | -\sqrt{a} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + \sqrt{a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a} \right |}\right ) \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1\right ) + \frac{2 \, a^{\frac{7}{2}} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1\right )}{{\left (\sqrt{a} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - \sqrt{a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a}\right )}^{2} - a} - \frac{{\left (10 \, \sqrt{2} a^{3} \arctan \left (\frac{\sqrt{2} \sqrt{a} + \sqrt{a}}{\sqrt{-a}}\right ) - 5 \, \sqrt{2} \sqrt{-a} a^{\frac{5}{2}} \log \left (\sqrt{2} \sqrt{a} + \sqrt{a}\right ) + 10 \, a^{3} \arctan \left (\frac{\sqrt{2} \sqrt{a} + \sqrt{a}}{\sqrt{-a}}\right ) - 5 \, \sqrt{-a} a^{\frac{5}{2}} \log \left (\sqrt{2} \sqrt{a} + \sqrt{a}\right ) - 3 \, \sqrt{2} \sqrt{-a} a^{\frac{5}{2}} - 5 \, \sqrt{-a} a^{\frac{5}{2}}\right )} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1\right )}{\sqrt{2} \sqrt{-a} + \sqrt{-a}} - \frac{3 \, a^{3} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1\right ) -{\left (a^{3} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1\right ) \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 4 \, a^{3} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1\right )\right )} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )}{\sqrt{a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a}}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]